package com.app.micaihu.bean.task;

import android.text.TextUtils;

import com.app.utils.util.StringUtils;

/**
 * Created by Guo on 2017/6/14.
 *
 * 征兵的bean
 */

public class RewardConscription {


    private String condition; //任务达成条件提示
    private String rewardScore;//任务奖励军功值
    private String rewardGold;//任务奖励金币值
    private String rewardStatus;//任务奖励领取状态 0不可领取 1可领取 2未领取


    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public String getRewardScore() {
        return rewardScore;
    }

    public void setRewardScore(String rewardScore) {
        this.rewardScore = rewardScore;
    }

    public String getRewardGold() {
        return rewardGold;
    }

    public void setRewardGold(String rewardGold) {
        this.rewardGold = rewardGold;
    }

    public String getRewardStatus() {
        return rewardStatus;
    }

    public void setRewardStatus(String rewardStatus) {
        this.rewardStatus = rewardStatus;
    }




    public int getInvateNum(){
        if(!TextUtils.isEmpty(condition)){
            String substring = condition.substring(0, condition.length() - 1);
            return StringUtils.toInt(substring, 0);
        }
        return 0;
    }
}
